import React, { useState, memo, useEffect, useMemo } from 'react';
import ReactECharts from 'echarts-for-react';


function Barchart({ style, option }) {
    return (
        <div style={{ ...style, position: "absolute" }}>
            <ReactECharts
                option={option ?? {}}
                notMerge={true}
                lazyUpdate={true}
                opts={{ renderer: 'svg' }}
            />
        </div>
    );
}



export default memo(Barchart);